/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "问卷调查", TableName = "Questionnaires")]
    public class Questionnaires:BaseEntity
    {
        /// <summary>
        ///
        /// </summary>
        [Key]
        [Display(Name = "id")]
        [Column(TypeName = "bigint")]
        [Required(AllowEmptyStrings = false)]
        public long id { get; set; }

        /// <summary>
        ///机构类别
        /// </summary>
        [Display(Name = "机构类别")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string typeid { get; set; }

        /// <summary>
        ///分组
        /// </summary>
        [Display(Name = "分组")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string groupid { get; set; }

        /// <summary>
        ///机构
        /// </summary>
        [Display(Name = "机构")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        public string unitid { get; set; }

        /// <summary>
        ///调查内容
        /// </summary>
        [Display(Name = "调查内容")]
        [Column(TypeName = "nvarchar()")]
        public string answerscontent { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "createdAt")]
        [Column(TypeName = "datetime")]
        public DateTime? createdAt { get; set; }

        /// <summary>
        ///调查人
        /// </summary>
        [Display(Name = "调查人")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        public string questuser { get; set; }

        /// <summary>
        ///
        /// </summary>
        [Display(Name = "updatedAt")]
        [Column(TypeName = "datetime")]
        public DateTime? updatedAt { get; set; }
    }
}